import Vue from 'vue'
import Router from 'vue-router'
import GoodList from "./../views/GoodList"
import Cart from "../views/Cart"
import Address from "./../views/Address"
import OrderConfirm from "./../views/OrderConfirm"
import OrderSuccess from "./../views/OrderSuccess"
<<<<<<< HEAD
import Gong from "./../views/gong"
=======
import Index from "./../views/Index"
import My from "./../views/My"
import Personal from "./../views/Personal"
import Account from "./../views/Account"
import Concern from "./../views/Concern"
>>>>>>> 2d32916c7a460404d826ab99e45ed8e447d85bd7
Vue.use(Router)

export default new Router({
    routes: [{
        path: "/",
        name: "Index",
        component: Index
    }, {
        path: "/cart",
        name: "Carts",
        component: Cart
    }, {
        path: "/address",
        name: "Address",
        component: Address
    }, {
        path: "/orderConfirm",
        name: "OrderConfirm",
        component: OrderConfirm
    }, {
        path: "/orderSuccess",
        name: "OrderSuccess",
        component: OrderSuccess
<<<<<<< HEAD
    },{
        path: "/gong",
        name: "Gong",
        component: Gong
    }]
})
=======
    },
      {
        path: "/my",
        name: "My",
        component: My,
        children: [
          {
            path: "/personal",
            name: "Personal",
            component: Personal
          },
          {
            path: "/account",
            name: "Account",
            component: Account
          },
          {
            path: "/concern",
            name: "Concern",
            component: Concern
          }
        ]
      }
    ]
})
>>>>>>> 2d32916c7a460404d826ab99e45ed8e447d85bd7
